package basicConcepts;

public class TestConceptsParentChild {
	private static class Parent{
		public void parentMethod(){
			System.out.println("TestConceptsParentChild.Parent.parentMethod()");
			
		}
	}
	
	private static class Child extends Parent{
		public void parentMethod(){
			System.out.println("TestConceptsParentChild.Child.parentMethod()");
		}
	}
	public static void main(String[] args) {
		Parent childRef  = new Child();
		childRef.parentMethod();
	}

}
